﻿@model PaymentHelper.Methods.BaoKim.Models.ConfigModel

@using (Html.BeginForm())
{
    <table>
        <tr>
            <td>
                @Html.LabelFor(model => model.Email)
            </td>
            <td>
                @Html.EditorFor(model => model.Email)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.Email)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.ReturnURL)
            </td>
            <td>
                @Html.EditorFor(model => model.ReturnURL)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.ReturnURL)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.CancelURL)
            </td>
            <td>
                @Html.EditorFor(model => model.CancelURL)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.CancelURL)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.UseSandbox)
            </td>
            <td>
                @Html.CheckBoxFor(model => model.UseSandbox)
            </td>
            <td>
                &nbsp;
            </td>
        </tr> 
        <tr>
            <td>
                @Html.LabelFor(model => model.HandlingFee)
            </td>
            <td>
                @Html.EditorFor(model => model.HandlingFee)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.HandlingFee)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.SandboxURL)
            </td>
            <td>
                @Html.EditorFor(model => model.SandboxURL)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.SandboxURL)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.BaoKimURL)
            </td>
            <td>
                @Html.EditorFor(model => model.BaoKimURL)
            </td>
            <td>
                @Html.ValidationMessageFor(model => model.BaoKimURL)
            </td>
        </tr> 
        <tr>
            <td>&nbsp;</td>
            <td>
                <input type="submit" value="Save" name="SaveConfig" />
            </td>          
            <td>&nbsp;</td>  
        </tr>
    </table>
}
@if (ViewBag.BaoKimMessage != null)
{
    <p>@ViewBag.BaoKimMessage </p>
}